﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012DB RID: 4827
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncEntityBuffChangeListScNotify : IMessage<SyncEntityBuffChangeListScNotify>, IMessage, IEquatable<SyncEntityBuffChangeListScNotify>, IDeepCloneable<SyncEntityBuffChangeListScNotify>, IBufferMessage
	{
		// Token: 0x17003CFF RID: 15615
		// (get) Token: 0x0600D83D RID: 55357 RVA: 0x00243F0B File Offset: 0x0024210B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncEntityBuffChangeListScNotify> Parser
		{
			get
			{
				return SyncEntityBuffChangeListScNotify._parser;
			}
		}

		// Token: 0x17003D00 RID: 15616
		// (get) Token: 0x0600D83E RID: 55358 RVA: 0x00243F12 File Offset: 0x00242112
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncEntityBuffChangeListScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D01 RID: 15617
		// (get) Token: 0x0600D83F RID: 55359 RVA: 0x00243F24 File Offset: 0x00242124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncEntityBuffChangeListScNotify.Descriptor;
			}
		}

		// Token: 0x0600D840 RID: 55360 RVA: 0x00243F2B File Offset: 0x0024212B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncEntityBuffChangeListScNotify()
		{
		}

		// Token: 0x0600D841 RID: 55361 RVA: 0x00243F3E File Offset: 0x0024213E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncEntityBuffChangeListScNotify(SyncEntityBuffChangeListScNotify other) : this()
		{
			this.entityBuffChangeList_ = other.entityBuffChangeList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D842 RID: 55362 RVA: 0x00243F68 File Offset: 0x00242168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncEntityBuffChangeListScNotify Clone()
		{
			return new SyncEntityBuffChangeListScNotify(this);
		}

		// Token: 0x17003D02 RID: 15618
		// (get) Token: 0x0600D843 RID: 55363 RVA: 0x00243F70 File Offset: 0x00242170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<EntityBuffChangeInfo> EntityBuffChangeList
		{
			get
			{
				return this.entityBuffChangeList_;
			}
		}

		// Token: 0x0600D844 RID: 55364 RVA: 0x00243F78 File Offset: 0x00242178
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncEntityBuffChangeListScNotify);
		}

		// Token: 0x0600D845 RID: 55365 RVA: 0x00243F86 File Offset: 0x00242186
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncEntityBuffChangeListScNotify other)
		{
			return other != null && (other == this || (this.entityBuffChangeList_.Equals(other.entityBuffChangeList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D846 RID: 55366 RVA: 0x00243FBC File Offset: 0x002421BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.entityBuffChangeList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D847 RID: 55367 RVA: 0x00243FF0 File Offset: 0x002421F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D848 RID: 55368 RVA: 0x00243FF8 File Offset: 0x002421F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D849 RID: 55369 RVA: 0x00244001 File Offset: 0x00242201
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.entityBuffChangeList_.WriteTo(ref output, SyncEntityBuffChangeListScNotify._repeated_entityBuffChangeList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D84A RID: 55370 RVA: 0x00244028 File Offset: 0x00242228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.entityBuffChangeList_.CalculateSize(SyncEntityBuffChangeListScNotify._repeated_entityBuffChangeList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D84B RID: 55371 RVA: 0x00244061 File Offset: 0x00242261
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncEntityBuffChangeListScNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.entityBuffChangeList_.Add(other.entityBuffChangeList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D84C RID: 55372 RVA: 0x0024408F File Offset: 0x0024228F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D84D RID: 55373 RVA: 0x00244098 File Offset: 0x00242298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 114U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.entityBuffChangeList_.AddEntriesFrom(ref input, SyncEntityBuffChangeListScNotify._repeated_entityBuffChangeList_codec);
				}
			}
		}

		// Token: 0x0400561C RID: 22044
		private static readonly MessageParser<SyncEntityBuffChangeListScNotify> _parser = new MessageParser<SyncEntityBuffChangeListScNotify>(() => new SyncEntityBuffChangeListScNotify());

		// Token: 0x0400561D RID: 22045
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400561E RID: 22046
		public const int EntityBuffChangeListFieldNumber = 14;

		// Token: 0x0400561F RID: 22047
		private static readonly FieldCodec<EntityBuffChangeInfo> _repeated_entityBuffChangeList_codec = FieldCodec.ForMessage<EntityBuffChangeInfo>(114U, EntityBuffChangeInfo.Parser);

		// Token: 0x04005620 RID: 22048
		private readonly RepeatedField<EntityBuffChangeInfo> entityBuffChangeList_ = new RepeatedField<EntityBuffChangeInfo>();
	}
}
